public class Course {
    private String courseName;
    private int courseID;
    private double credit;

    public Course(){
        System.out.println("无参构造方法");
    }
    public Course(String courseName,int courseID,double credit)
    {
        this.courseName=courseName;
        this.courseID=courseID;
        this.credit=credit;
    }
    public void displayCourseInfo()
    {
        System.out.println("课程名字: "+courseName);
        System.out.println("课程id: "+courseID);
        System.out.println("学分: "+credit);
    }
}
